'''
   窗体中的画布示例：
    绘制笑脸
'''
import tkinter
import tkinter.messagebox
win = tkinter.Tk()
win.title('小丑smile')
win.geometry('250x250')  

can = tkinter.Canvas(win, height=250, width=250) #定义画布
io1 = can.create_oval(35,30,210,210, fill='yellow') #画一蓝色圆
io2 = can.create_oval(70,70,180,180, fill='green')
io3 = can.create_oval(65,70,185,170, outline='yellow', fill='yellow') 
io4 = can.create_oval(80,100,110,130, fill='black') 
io5 = can.create_oval(150,100,180,130, fill='purple')

can.pack()
win.mainloop()



